<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="icon" type="image/ico" th:href="@{/images/favicon.ico}">
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}">
    <title>帮组分类管理列表</title>
</head>
<body class="layui-tab-content">
<div class="layui-card layui-card-body">
<div class="layui-form toolbar" id="queryTools">
    <div class="layui-form-item">
        <button class="layui-btn" id="btnAdd">新增</button>
        <button class="layui-btn" id="btnBack">返回</button>
    </div>
</div>
<table class="layui-hide" id="helpTypeTable" lay-filter="helpTypeTable"></table>
</div>
<!--新增修改界面-->
<form class="layui-form" id="editForm" lay-filter="editForm" style="display:none;padding-top:10px">
    <input type="hidden" name="helpId">
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="layui-tip-required">*</i>分类名称:</label>
        <div class="layui-input-block" style="width:60%;">
            <input type="text" name="helpName" lay-verify="required|tagLen" autocomplete="off" placeholder="请输入分类名称"
                   class="layui-input layui-form-danger" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">分类排序:</label>
        <div class="layui-input-block" style="width:60%;">
            <input type="text" name="sort" lay-verify="required|number" autocomplete="off" placeholder="请输入产品排序"
                   class="layui-input layui-form-danger" style="width: 50%;display: inline-block;" />
            <i class="layui-word-aux">数字越小，排序越靠前</i>
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <button id="saveRecord" class="layui-btn" lay-submit lay-filter="editRecord">保存</button>
    </div>
</form>
<!--列操作-->
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>

<script type="text/javascript" th:src="@{/js/plugins/jquery-1.11.3.min.js}"></script>
<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/js/modules/helpType/list.js}"></script>
</body>
</html>